package com.blog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * sys_place
 * @author 
 */
@TableName("sys_place")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysPlace implements Serializable {
    /**
     * id，主键
     */
    private String id;

    /**
     * 父级节点id，如果是根节点为0
     */
    private String pid;

    /**
     * 树形组件的节点名
     */
    private String text;

    /**
     * 地点名全程
     */
    private String place;

    /**
     * 经度，用于计算两个地点之间的距离
     */
    private String longitude;

    /**
     * 维度，用于计算两个地点之间的距离
     */
    private String dimension;

    /**
     * 地点类型,1:省/直辖市,2:市,3:区县
     */
    private String type;

    /**
     * 地点状态 1正常 -1删除
     */
    private Integer active;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}